package cn.labbook.bluetooth.service.impl;

import cn.labbook.bluetooth.entity.SysLog;
import cn.labbook.bluetooth.mapper.SysLogMapper;
import cn.labbook.bluetooth.service.ISysLogService;
import cn.labbook.bluetooth.thread.CustomThreadPool;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lonzy
 * @since 2019-03-26
 */
@Service
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements ISysLogService {

    public  void asynSave(SysLog sysLog){
        CustomThreadPool.sqlPool.execute(() -> {
            save(sysLog);
        });
    }
}
